package com.xm;

/**
 * @Author：xm
 * @Project：runoob
 * @Date：2024/7/9 14:57
 */

public class Mouse01 extends Animal01 {

    public Mouse01(String myName, int myId) {
        super(myName, myId);
    }

    @Override
    public void introduction() {
        // super.introduction();
        System.out.println("重写父类方法");
    }

    public void introductionTest() {
        this.introduction();
        super.introduction();
    }

    public static void main(String[] args) {
        Mouse01 mouse01 = new Mouse01("老鼠", 1);
        mouse01.introduction();

        mouse01.introductionTest();
    }
}
